﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using XDCCManager.EventHandlers;
using XDCCManager.Model;

namespace XDCCManager.Popups
{
	/// <summary>
	/// Interaction logic for PackEditor.xaml
	/// </summary>
	public partial class PackEditor : UserControl
	{
		public PackEditor()
		{
			InitializeComponent();
		}

		private void Remove_Click(object sender, RoutedEventArgs e)
		{
			if (Remove != null)
				Remove(this, new EventArgs());
		}

		private void Cancel_Click(object sender, RoutedEventArgs e)
		{
			if (Cancel != null)
				Cancel(this, new EventArgs());
		}

		private void Ok_Click(object sender, RoutedEventArgs e)
		{
			if (Ok != null)
				Ok(this, new PackEventArgs(DataContext as Model.Packs.IPack));
		}

		public event EventHandler Remove;
		public event EventHandler Cancel;
		public event EventHandler<PackEventArgs> Ok;
	}
}
